﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" MasterPageFile="~/Admin/View/Layout.Master" Inherits="MallProject.Admin.View.Setting.Index" %>

<asp:Content runat="server" ContentPlaceHolderID="Head">
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
    
    <script>
        var map;
        function initialize() {
            var mapOptions = {
                zoom: 13,
                center: new google.maps.LatLng(59.32522, 18.07002),
                mapTypeControl: true,
                mapTypeControlOptions: {
                    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
                },
                zoomControl: true,
                zoomControlOptions: {
                    style: google.maps.ZoomControlStyle.SMALL
                },
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);

            marker = new google.maps.Marker({
                map: map,
                draggable: true,
                animation: google.maps.Animation.DROP,
                position: new google.maps.LatLng(59.327383, 18.06747)
            });
            google.maps.event.addListener(marker, 'click', toggleBounce);
        }
        function toggleBounce() {

            if (marker.getAnimation() != null) {
                marker.setAnimation(null);
            } else {
                marker.setAnimation(google.maps.Animation.BOUNCE);
            }
        }

        google.maps.event.addDomListener(window, 'load', initialize);
    </script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Contents">
    <div class="grid_4">
        <div class="da-panel">
            <div class="da-panel-header">
                <span class="da-panel-title">
                    <img src="images/icons/color/accept.png" alt="" />
                    Setting </span>
               
            </div>
            <div class="da-panel-content">
                <div id="da-ex-validate-setting" class="da-form">
                <div class="da-form-inline">
                    <div class="da-form-row">
                        <label>Company<span class="required">*</span></label>
                        <div class="da-form-item large">
                            <asp:TextBox runat="server" ID="txtCompany" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Address <span class="required">*</span></label>
                        <div class="da-form-item large">
                            <asp:TextBox ID="txtAddress" runat="server" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Map </label>
                        <div class="da-form-item large">
                            <div id="map_canvas" style="width: 850px;height: 300px"></div>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Phone<span class="required">*</span></label>
                        <div class="da-form-item small">
                            <asp:TextBox runat="server" ID="txtPhone" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Fax<span class="required">*</span></label>
                        <div class="da-form-item small">
                            <asp:TextBox runat="server" ID="txtFax" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Email<span class="required">*</span></label>
                        <div class="da-form-item large">
                            <asp:TextBox runat="server" ID="txtEmail" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Descrition<span class="required">*</span></label>
                        <div class="da-form-item large">
                            <span class="formNote">An another form note</span>
                            <asp:TextBox runat="server" ID="Description" TextMode="MultiLine" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                    <div class="da-form-row">
                        <label>Keyword<span class="required">*</span></label>
                        <div class="da-form-item large">
                            <span class="formNote">An another form note</span>
                            <asp:TextBox runat="server" ID="Keyword" TextMode="MultiLine" CssClass="required"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="da-button-row">
                    <asp:Button runat="server" ID="Save" CssClass="da-button green" Text="Save" 
                        onclick="Save_Click" />
                </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
